﻿using System.ComponentModel.DataAnnotations;
using YNTK.Dependency;

namespace YNTK.Employees.Entitys.Dto
{
    /// <summary>
    /// 员工家庭成员数据传输模型
    /// </summary>
    [SuppressSniffer]
    public class FamilyMemberListDto
    {
        /// <summary>
        /// id
        /// </summary>
        public string id { get; set; }

        /// <summary>
        /// 关系
        /// </summary>
        public string relation { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        public string name { get; set; }

        /// <summary>
        /// 工作单位
        /// </summary>
        public string workUnit { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        public string contactPhone { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        public string address { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string description { get; set; }
    }

    /// <summary>
    /// 添加家庭成员请求模型
    /// </summary>
    [SuppressSniffer]
    public class AddFamilyMemberRequestModel
    {
        /// <summary>
        /// 关系
        /// </summary>
        [Required(ErrorMessage = "关系不能为空")]
        public string relation { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        [Required(ErrorMessage = "姓名不能为空")]
        public string name { get; set; }

        /// <summary>
        /// 工作单位
        /// </summary>
        public string workUnit { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        public string contactPhone { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        public string address { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string description { get; set; }
    }

    /// <summary>
    /// 修改家庭成员请求模型
    /// </summary>
    [SuppressSniffer]
    public class UpdateFamilyMemberRequestModel: AddFamilyMemberRequestModel
    {
        /// <summary>
        /// 家庭成员id
        /// </summary>
        [Required(ErrorMessage = "家庭成员唯一标识不能为空")]
        public string id { get; set; }
    }


}
